﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JUtil;

namespace CodeGenerator.Config
{
    public class DalConfig
    {
        public string Namespace { get; set; }
        public string Class { get; set; }
        public string SelectSql { get; set; }
        public bool Overwrite { get; set; }
    }

    public class DbConnectionConfig
    {
        public string ConnectionString { get; set; }
        public DbProvider DbProvider { get; set; }
    }

    public class DalGeneratorProjectConfig
    {
        public string ProjectName { get; set; }
        public List<DalConfig> DalConfigs { get; set; }
        public DbConnectionConfig DbConnectionConfig { get; set; }
        public bool ExploreAfterRun { get; set; }
        public string ExportDirectory { get; set; }
    }

    public class DalGeneratorConfig
    {
        public string ActiveProjectName { get; set; }
        public List<DalGeneratorProjectConfig> DalGeneratorProjectConfigs { get; set; }

        public DalGeneratorProjectConfig ActiveProject { get; set; }
    }
}
